package org.csu.mybigpro.persistence;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.csu.mybigpro.domain.Exam;
import org.csu.mybigpro.domain.Test;

@Mapper
public interface TestMapper extends BaseMapper<Test> {

    @Insert("INSERT INTO test(name, course_id, create_time, total_score, time_limit, file_path) " +
            "VALUES(#{name}, #{courseId}, #{createTime}, #{totalScore}, #{timeLimit}, #{filePath})")
    void insertTest(Test test);

    // 也可以写xml映射文件，或用注解写其他方法
}
